#coding=utf-8
import os,sys

project = sys.argv[1]
tsina_root = '/home/jay/py/tsina'
init_root = os.path.realpath(os.path.dirname(__file__))
project_root = os.path.join(init_root, project)

os.system('django-admin startproject %s'%project)
os.system('cp default_settings.py %s/settings.py'%project_root)
os.system('cp default_urls.py %s/urls.py'%project_root)
os.system('mkdir %s/db'%project_root)
os.system('cp -r %s/script %s'%(tsina_root, project_root))
